/**
 * Private configuration file for the SSD1306 library.
 */

#ifndef __SSD1306_CONF_H__
#define __SSD1306_CONF_H__

/* Choose a microcontroller family */
//#define AT32A403A
//#define AT32F402
//#define AT32F403
//#define AT32F403A
//#define AT32F405
//#define AT32F407
//#define AT32F413
#define AT32F415
//#define AT32F421
//#define AT32F423
//#define AT32F425
//#define AT32F435
//#define AT32F437
//#define AT32WB415

/* Provide Delay(ms) and GetTick() functions */
#define ssd1306_Delay(x)        delay_ms(x)     /* 宏定义系统ms延时函数（必须） */
#define ssd1306_GetTick()       ms_count        /* 获取系统ms计数器（非必需，演示计算帧率有用） */

/* Choose a bus */
#define SSD1306_USE_I2C
//#define SSD1306_USE_SPI

/* I2C Configuration */
#define SSD1306_I2C_PORT        I2C1
#define SSD1306_I2C_ADDR        (0x3C << 1)

/* SPI Configuration */
//#define SSD1306_SPI_PORT        SPI1
//#define SSD1306_CS_Port         OLED_CS_GPIO_Port
//#define SSD1306_CS_Pin          OLED_CS_Pin
//#define SSD1306_DC_Port         OLED_DC_GPIO_Port
//#define SSD1306_DC_Pin          OLED_DC_Pin
//#define SSD1306_Reset_Port      OLED_Res_GPIO_Port
//#define SSD1306_Reset_Pin       OLED_Res_Pin

/* Mirror the screen if needed */
// #define SSD1306_MIRROR_VERT
// #define SSD1306_MIRROR_HORIZ

/* Set inverse color if needed */
// # define SSD1306_INVERSE_COLOR

/* Include only needed fonts */
#define SSD1306_INCLUDE_FONT_6x8
#define SSD1306_INCLUDE_FONT_7x10
#define SSD1306_INCLUDE_FONT_11x18
#define SSD1306_INCLUDE_FONT_16x26

#define SSD1306_INCLUDE_FONT_16x24

#define SSD1306_INCLUDE_FONT_16x15

/* The width of the screen can be set using this
   define. The default value is 128. */
// #define SSD1306_WIDTH           64

/* If your screen horizontal axis does not start
   in column 0 you can use this define to
   adjust the horizontal offset */
// #define SSD1306_X_OFFSET

/* The height can be changed as well if necessary.
   It can be 32, 64 or 128. The default value is 64. */
// #define SSD1306_HEIGHT          64

#endif /* __SSD1306_CONF_H__ */
